﻿// code03020203.cpp : 字符串
// string的empty和size方法

#include <iostream>
#include <string>
using namespace std;

int main()
{
    cout << "输入一行文字：" << endl;
    string line;
	while (getline(cin,line))
    {
	    if (!line.empty()&&line.size()<10)
	    {
			cout << line << endl;
	    }
    }

	return 0;
}

